﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PageManager.aspx.cs" Inherits="TheheVn.AdminPage.PageManager" %>

<%@ Register assembly="DevExpress.Web.v14.1, Version=14.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>

<%@ Register assembly="DevExpress.Web.v14.1, Version=14.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridLookup" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v14.1, Version=14.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>

<%@ Register assembly="DevExpress.Web.ASPxHtmlEditor.v14.1, Version=14.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxHtmlEditor" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxSpellChecker.v14.1, Version=14.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxSpellChecker" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v14.1, Version=14.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxUploadControl" tagprefix="dx" %>

<%@ Register assembly="DevExpress.Web.v14.1, Version=14.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxImageZoom" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v14.1, Version=14.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxCallbackPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v14.1, Version=14.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .auto-style1 {
            height: 30px;
        }
        .auto-style2 {
            width: 105px;
            height: 30px;
        }
        .auto-style3 {
            width: 17%;
        }
        .auto-style4 {
            width: 17%;
            height: 23px;
        }
        .auto-style5 {
            height: 23px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div align="right">
            <dx:ASPxButton ID="btLogout" runat="server" RenderMode="Link" Text="Logout" OnClick="btLogout_Click">
            </dx:ASPxButton>
        </div>
        <div>
            
            <table style="width:100%;">
                <tr>
                    <td class="auto-style3">&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td class="auto-style3">
                        <dx:ASPxGridLookup ID="grlPageList" runat="server" Width="100%" AutoGenerateColumns="False" ClientInstanceName="grlPageList" KeyFieldName="Type" OnValueChanged="grlPageList_ValueChanged">
<GridViewProperties>
<SettingsBehavior AllowFocusedRow="True" AllowSelectSingleRowOnly="True"></SettingsBehavior>
</GridViewProperties>
                            <Columns>
                                <dx:GridViewDataTextColumn Caption="Pages List" FieldName="Type" Name="colPageList" ReadOnly="True" VisibleIndex="0">
                                </dx:GridViewDataTextColumn>
                            </Columns>
                        </dx:ASPxGridLookup>
                    </td>
                    <td colspan="2">

                        <dx:ASPxGridLookup ID="grlPage" runat="server" Width="100%" AutoGenerateColumns="False" ClientInstanceName="grlPage" KeyFieldName="Id" IncrementalFilteringDelay="100" IncrementalFilteringMode="Contains" TextFormatString="{0}" OnValueChanged="grlPage_ValueChanged1">
<GridViewProperties>
<SettingsBehavior AllowFocusedRow="True" AllowSelectSingleRowOnly="True"></SettingsBehavior>
</GridViewProperties>
                            <Columns>
                                <dx:GridViewDataTextColumn Caption="Id" FieldName="Id" ReadOnly="True" VisibleIndex="0">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Caption="VnHeader" FieldName="VnHeader" ReadOnly="True" VisibleIndex="1">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Caption="EnHeader" FieldName="EnHeader" ReadOnly="True" VisibleIndex="2">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Caption="CreateDate" FieldName="CreateDate" ReadOnly="True" VisibleIndex="3">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Caption="Priority" FieldName="Priority" ReadOnly="True" VisibleIndex="4">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Caption="Image" FieldName="Image" ReadOnly="True" VisibleIndex="5">
                                </dx:GridViewDataTextColumn>
                            </Columns>
                        </dx:ASPxGridLookup>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3">
                            &nbsp;</td>
                    <td colspan="2">
                            <table style="width:100%;">
                            <tr>
                                <td>
                                    <asp:Button ID="btNew" runat="server" Text="Tạo tin" OnClick="btNew_Click" />
                                </td>
                                <td>
                                    <asp:Button ID="btEdit" runat="server" Text="Sửa tin" OnClick="btEdit_Click" />
                                </td>
                                <td>
                                    <asp:Button ID="btDelete" runat="server" Text="Xóa tin" OnClick="btDelete_Click" />
                                </td>
                                <td>
                            <asp:Button ID="btSubmit" runat="server" Text="Cập nhật dữ liệu" OnClick="btSubmit_Click" />
                                </td>
                            </tr>
                        </table> 
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3">
                            <dx:ASPxImage ID="avartaImage" runat="server" Height="90px" Width="90px">
                            </dx:ASPxImage>
                    </td>
                    <td colspan="2">
                        <div>
                            <table style="width:100%;">
                                <tr>
                                    <td class="auto-style1">
                                        <asp:FileUpload ID="FileUpload1" runat="server" Width="100%" Enabled="False" />
                                    </td>
                                    <td class="auto-style2">
                                        <asp:Button ID="btUpload" runat="server" OnClick="btUpload_Click" Text="Upload " Enabled="False" Width="100%" />
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div align="right">
                            <table style="width:100%;">
                                <tr>
                                    <td style="width: 80px">Độ ưu tiên:</td>
                                    <td>    
                        <dx:ASPxSpinEdit ID="sePriority" runat="server" Number="1" Width="100%" ClientInstanceName="sePriority" style="margin-left: 0px" Enabled="False" />
                            
                                    </td>
                                    <td style="width: 252px">
                        <dx:ASPxRadioButtonList ID="rblLang" runat="server" Width="250px" AutoPostBack="True" OnSelectedIndexChanged="rblLang_SelectedIndexChanged" Height="16px" RepeatColumns="2">
                            <RadioButtonStyle HorizontalAlign="Center">
                            </RadioButtonStyle>
                            <Items>
                                <dx:ListEditItem Text="Tiến Anh (En)" Value="En" />
                                <dx:ListEditItem Text="Tiếng Việt (Vn)" Value="Vn" />
                            </Items>
                        </dx:ASPxRadioButtonList>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div>
                        <dx:ASPxTextBox ID="txtPageUrl" runat="server" Width="100%" Enabled="False" ReadOnly="True">
                        </dx:ASPxTextBox>
                        
                        </div>
                    
                        
                    </td>
                </tr>
                <tr>
                    <td class="auto-style4" align="right">
                            <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="Tiêu đề" Font-Size="Medium">
                            </dx:ASPxLabel>
                    </td>
                    <td colspan="2" class="auto-style5" >
                        <dx:ASPxTextBox ID="txtHeader" runat="server" Width="100%" Enabled="False">
                        </dx:ASPxTextBox>
                        
                    </td>
                </tr>
            </table>
            
        </div>
        <div>
            

            <dx:ASPxHtmlEditor ID="htmlEditor" runat="server" Width="100%" Enabled="False" ToolbarMode="Ribbon">
                <SettingsImageUpload UploadImageFolder="~/HtmlEditorUploadImage/">
                    <ValidationSettings AllowedFileExtensions=".jpe,.jpeg,.jpg,.gif,.png" MaxFileSize="500000">
                    </ValidationSettings>
                </SettingsImageUpload>
            </dx:ASPxHtmlEditor>
            

        </div>
    </div>
    </form>
</body>
</html>
